<?
	$data['name'] = $_POST['name'];
	$data['type'] = $_POST['type'];

	$db->update("assessment", $data, "id=".$_POST['aid']);

	redirect("assessment.php?id=".$aid);
?>